[Three20] How to adjust width of TTStyledTextLabel ?

Posted by Chi Zhang on Stack Overflow See other posts from Stack Overflow or by Chi Zhang
Published on 2011-01-01T11:42:00Z Indexed on 2011/01/01 11:54 UTC
Read the original article Hit count: 234

Filed under:
|
|

Hi

I am implementing an IM app on iOS. I found that three20 library has a TTStyledTextLabel which provides cool features like showing images and url links. However I want to embed the TTStyledTextLabel in a message bubble (just like the sms app shipped with iphone does), where I need the label to adjust its size according to the text length. I found that TTStyledTextLabel can adjust its height according to its width, but I don't know how to make it shrink horizontally when the text is very short and can't fill up a whole line. Any suggestions?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about three20